<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles" %>

<script type="text/javascript" language="javascript" src="/js/ga.js"></script>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="ko" xml:lang="ko">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta http-equiv="Content-Script-Type" content="text/javascript" />
	<meta http-equiv="Content-Style-Type" content="text/css" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge" />
	<title>::: IP-DESK Intranet System :::</title>
	<link rel="stylesheet" type="text/css" href="/css/reset.css"/>
	<link rel="stylesheet" type="text/css" href="/css/business.css"/>
	<link rel="stylesheet" type="text/css" href="/css/style.css"/>
	<link rel="stylesheet" href="/js/jquery-ui/css/jquery.ui.all.css"/>
	<script type="text/javascript" language="javascript" src="/js/common.js"></script>
	<script type="text/javascript" language="javascript" src="/js/png.js"></script>
	<script type="text/javascript" language="javascript" src="/js/main_menu.js"></script>

	<script type="text/javascript" src="/js/jquery-1.6.2.js"></script>
	<script src="/js/jquery-ui/jquery.ui.core.js"></script>
	<script src="/js/jquery-ui/jquery.ui.widget.js"></script>
	<script src="/js/jquery-ui/jquery.ui.datepicker.js"></script>
	<script src="/js/jquery-ui/jquery.effects.core.js"></script>
	<script src="/js/jquery-ui/jquery.effects.slide.js"></script>
	
	<script type="text/javascript" src="/js/common_jquery.js"></script>
	<script type="text/javascript" src="/js/business.js"></script>
</head>

<body>

<input type="hidden" name="companyCode" value="${param.companyCode}"/>
<input type="hidden" name="companySeq" value="${param.companySeq}"/>

<div id="wrap">
  <dl class="SubContents_Tit">
    <dd><img src="/images/business/SubContents_Tit_01.gif" width="370" height="42" alt="기업정보 관리" /></dd>
    <dd><img src="/images/business/SubTit_02.gif" width="140" height="30" alt="기업 정보 조회" /></dd>
  </dl>
  <dl class="SubContents_Contents_Search"><!-- 업체 고유번호 -->    
    <dd><img src="/images/business/Sub_CenterNum.gif" width="109" height="21" alt="업체 고유번호" /></dd>
    <dd><s:property value="#request.companyCode"/></dd>
  </dl><!-- 업체 고유번호 -->
  <ul class="Tab_area"><!-- 종류 탭 -->    
    <li><a href="/biz/bizDetail.desk?companySeq=<s:property value="#request.companySeq"/>" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Tab01','','/images/business/Tab_01_on.gif',0)"><img src="/images/business/Tab_01_off.gif" alt="일반 현황" name="Tab01" width="114" height="34" border="0" id="Tab01" /></a></li>
    <li><a href="/biz/bizCustomerDetail.desk?companySeq=${companySeq }&companyCode=${companyCode}" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Tab02','','/images/business/Tab_02_on.gif',0)"><img src="/images/business/Tab_02_on.gif" alt="담당자 정보" name="Tab02" width="100" height="34" border="0" id="Tab02" /></a></li>
  </ul><!-- 종류 탭 -->  
  <dl class="SubContents_Contents_Date">
   <dd>&nbsp; <!-- 마지막 수정일 : <span class="TEXT_Red_Bold"> 2011. 8. 1</span> --></dd>
  </dl> 
  
 <s:if test="customerList.size == 0">
 	<dl class="LIst_Zone"><!-- 리스트 -->
	    <dd>
	      <table class="viewboard" border="1" cellspacing="0" summary="글 내용을 표시">
	      	<tbody>
	     		<tr>
					<td colspan="13" align="center">등록된 담당자가 없습니다.</td>
				</tr>
			</tbody>
		 </table>
		</dd>
	</dl>
</s:if>
<s:else>
	<s:iterator value="customerList" status="stat">
	  <dl class="LIst_Zone"><!-- 리스트 -->
	  	<dd style="text-align: right;">
	  		<img src="/images/business/btn_edit2.gif" alt="담당자 정보 수정" class="btn_biz_customer_modify_form" style="cursor:pointer;"/>
	  		<img src="/images/business/btn_del.gif" alt="담당자 정보 삭제" class="btn_biz_customer_del" style="cursor:pointer;"/>
	  		<input type="hidden" name="customerSeq" value="<s:property value="customerSeq"/>"/>
	  		
	  	</dd>
	    <dd>
	      <table class="viewboard" border="1" cellspacing="0" summary="글 내용을 표시">
	        <caption> 글 읽기</caption>
	        <colgroup><col width="139px"><col width="215px"><col width="139px"><col width="212px"></colgroup>
	        <tbody>
	          <tr>
	           <th scope="row" class="line_LeftTop">이름</th>
	            <td class="line_LeftTop"><s:property value="customerName"/></td>
	            <th scope="row" class="line_LeftTop">등록일</th>
	            <td class="line_LeftTop"><s:property value="regTime"/></td>
	          </tr>
	          <tr>
	            <th scope="row">직위</th>
	            <td><s:property value="position"/></td>
	            <th scope="row">전담유무</th>
	            <td><s:property value="exclusiveFlag"/></td>
	          </tr> 
	          <tr>
	            <th scope="row">상담경로</th>
	            <td><s:property value="consultingCode"/></td>
	            <th scope="row">전화번호</th>
	            <td><s:property value="telNo"/></td>
	          </tr>
	          <tr>
	            <th scope="row">휴대폰번호</th>
	            <td><s:property value="mobileNo"/></td>
	           <th scope="row">팩스번호</th>
	            <td><s:property value="faxNo"/></td>
	          </tr>
	          <tr>
	            <th scope="row">이메일</th>
	            <td><s:property value="email"/></td>
	            <th scope="row"></th>
	            <td></td>
	          </tr>                                     
	        </tbody>
	      </table>              
	    </dd>
	  </dl><!-- 리스트 -->
	</s:iterator>
</s:else> 
  <dl class="List_Btn_area"><!-- 버튼 부분 -->
    <dd class="Left_Zone"><a href="/biz/bizListForUser.desk"/><img src="/images/notice/btn_list.gif" alt="목록" width="52" height="26" border="0" /></a></dd>
    <dd class="Right_Zone"><a href="/biz/bizCustomerAddForm.desk?companySeq=<s:property value="#request.companySeq"/>&companyCode=<s:property value="#request.companyCode"/>"><img src="/images/business/btn_PeEdit.gif" width="124" height="26" alt="담당자 추가등록" /></a></dd>
  </dl><!-- 버튼 부분 --> 
</div>

</body>
</html>